/*
 * ActionUniversalFO.java
 *
 * Created on 6 de Dezembro de 2007, 20:03
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package org.ontoscheduler.concepts;

import java.util.Iterator;
import java.util.Collection;

import com.hp.hpl.jena.ontology.OntModel;
import com.hp.hpl.jena.ontology.Individual;

/**
 *
 * @author joaoolavo
 */
public class ActionUniversalFO extends Concepts {
    
    /** Creates a new instance of ActionUniversalFO */
    public ActionUniversalFO(OntModel m) {
        setConcept(m, "ActionUniversalFO");
    }
    
    public int setInstanceOf(Individual fo, Collection ho){
        return addPropertyValues("instanceOf", fo, ho, OBJECT_PROPERTY);
    }
    
    public int setClosedAppointment(Individual fo, Collection ca){
        return addPropertyValues("inv-basedOn", fo, ca, OBJECT_PROPERTY);
    }
    
    public int setInstantiates(Individual fo, Collection ac){
        return addPropertyValues("inv-instanceOf", fo, ac, OBJECT_PROPERTY);
    }
    
    public Iterator getCommitmens(Individual fo){
        return getPropertyValues("inv-basedOn", fo);
    }
}
